﻿using RestSharp;
using Ymatou.ServiceCenter;
using Ymatou.User.Dto.Auth;
using YmtAuth.AppService;
using YmtSystem.CrossCutting;
using ResetService = ServiceStack.Service;

namespace YmtAuth.Web.Handlerv2
{
    
    public class UserRegisterHandler : ResetService
    {
        private IUserBillsAppService AuthAppService { get { return LocalServiceLocator.GetService<IUserBillsAppService>(); } }


        [ServiceRegister("/json/reply/UserRegisterRequestDto", Method.POST)]
        public object Post(UserRegisterRequestDto request)
        {
            return AuthAppService.CreateUserBills(request.UData);           
        }
    }
}